﻿using MessagePack;
using System.Collections.Generic;

namespace Manon.Core
{
    /// <summary>
    /// id入参
    /// </summary>
    //[DataContract]
    [MessagePackObject(true)]
    public class IdInputDto
    {
        public IdInputDto()
        {

        }

        public IdInputDto(int _id)
        {
            this.Id = _id;
        }

        /// <summary>
        /// id
        /// </summary>
        //[DataMember(Order = 1)]
        public int Id { get; set; }
    }
    /// <summary>
    /// id集合入参
    /// </summary>
    [MessagePackObject(true)]
    public class IdsInputDto
    {
        public IdsInputDto()
        {

        }

        public IdsInputDto(IEnumerable<int> _ids)
        {
            this.Ids = _ids;
        }

        //[DataMember(Order = 1)]
        public IEnumerable<int> Ids { get; set; }
    }

    //[DataContract]
    [MessagePackObject(true)]
    public class LongIdInputDto
    {
        public LongIdInputDto()
        {

        }

        public LongIdInputDto(long _id)
        {
            this.Id = _id;
        }
        //[DataMember(Order = 1)]
        public long Id { get; set; }
    }

    [MessagePackObject(true)]
    public class LongIdsInputDto
    {
        public LongIdsInputDto()
        {

        }

        public LongIdsInputDto(IEnumerable<long> _ids)
        {
            this.Ids = _ids;
        }
        //[DataMember(Order = 1)]
        public IEnumerable<long> Ids { get; set; }

    }
}
